package hu.tortavar2.client.view.product;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.UIObject;

public class ProductDetailView extends UIObject {

	private static ProductDetailViewUiBinder uiBinder = GWT
			.create(ProductDetailViewUiBinder.class);

	interface ProductDetailViewUiBinder extends
			UiBinder<Element, ProductDetailView> {
	}

	@UiField
	SpanElement nameSpan;

	public ProductDetailView(String firstName) {
		setElement(uiBinder.createAndBindUi(this));
		nameSpan.setInnerText(firstName);
	}

}
